﻿using System;

namespace Functions
{
    class Program
    {
        static void Main(string[] args)
        {
            /*
            int x = GetIntFromConsole();
            int y = GetIntFromConsole();
            PrintSeparator();
            PrintSeparator(30);
            PrintSeparator(20, '*');
            PrintSeparator(15, '=');
            */
            int[] election = new int[] { 25, 17, 3, 42 };
            PrintChart(election, '=', 4);

            Console.ReadKey();
        }

        static void PrintChart(int[] data, char symbol, int thikness)
        {
            for (int i = 0; i < data.Length; i++)
            {
                for (int t = 0; t < thikness; t++)
                {
                    PrintSeparator(data[i], symbol);
                }
                
                Console.WriteLine();
            }
        }

        static void PrintSeparator(int count, char symbol)
        {
            for (int i = 0; i < count; i++)
            {
                Console.Write(symbol);
            }
            Console.WriteLine();
        }

        static void PrintSeparator(int count)
        {
            for (int i = 0; i < count; i++)
            {
                Console.Write("-");
            }
            Console.WriteLine();
        }
        static void PrintSeparator()
        {
            Console.WriteLine("---------------------");
        }
        static int GetIntFromConsole()
        {
            return int.Parse(Console.ReadLine());
        }
        static int Max2(int a, int b)
        {
            int max = b;

            if (a > b)
            {
                max = a;
            }

            return max;
        }

        static int Max3(int a, int b, int c)
        {
            int max = Max2(a, b);
            return Max2(max, c);
        }

        static int Max4(int a, int b, int c, int d)
        {
            int max = Max3(a, b, c);
            return Max2(max, d);
        }

        // <type> FunctionName([<type> arg1, <type> arg2, ...])
        // void F1()
        // void F2(int x)
        // int F3()
        // int F4(int x)
        // int F5(int x, int y)
    }
}
